Let's say I've stored the GUID's for a particular set of objects from my database into a .txt file. How would I go about using the GUID loaded from the text file to reference its corresponding object?
Read GUID from file Search DB for GUID Set my object to the object found from GUID search Read attribute data from my object
Anybody know how to search the DB for a particular GUID and set it to an object variable for read-only access?
Thanks, MGD... MGDMGD - Thu Nov 03 18:58:01 EDT 2016 |
Re: Get object from GUID Please help me a bit. Where in DOORS would you find a GUID (a 128 bit number)? If you mean the DOORS URL (the one you get from the functions string getURL (Item) string getURL (Object, bool) string getURL (DBE, string ID) string getURL (ModuleVersion, bool) […] ), it can be decoded by using string decodeURL (string, string& dbHost, int& dbPort, string& repositoryId, string& dbName, string& dbId, Item&, ModuleVersion&, int& objectAbsno) (the first string being the URL and the rest are out parameters. If you mean the item ID (the one you get from the function string uniqueID (Item) ), the counterpart is Item itemFromID (string) |
Re: Get object from GUID Mike.Scharnow - Fri Nov 04 03:59:01 EDT 2016 Please help me a bit. Where in DOORS would you find a GUID (a 128 bit number)? If you mean the DOORS URL (the one you get from the functions string getURL (Item) string getURL (Object, bool) string getURL (DBE, string ID) string getURL (ModuleVersion, bool) […] ), it can be decoded by using string decodeURL (string, string& dbHost, int& dbPort, string& repositoryId, string& dbName, string& dbId, Item&, ModuleVersion&, int& objectAbsno) (the first string being the URL and the rest are out parameters. If you mean the item ID (the one you get from the function string uniqueID (Item) ), the counterpart is Item itemFromID (string) Using the function (getGUID_ (current Object)) you will get something along the lines of: AB:4be336a111422872:23:210000d03f:280000011f:ff00000009 using the v9.5.1.2 client
Regards, MGD |
Re: Get object from GUID MGDMGD - Fri Nov 04 12:34:29 EDT 2016 Using the function (getGUID_ (current Object)) you will get something along the lines of: AB:4be336a111422872:23:210000d03f:280000011f:ff00000009 using the v9.5.1.2 client
Regards, MGD Oh, that one. I have not worked with these functions. They are undocumented, right? They have probably been introduced for supporting OSLC. See https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014580797 for a list of all perms, documented and undocumented, that DOORS provides. There are some perms using the term "guid" like "editObjectAttribute" or "getView". Perhaps these will help you. |